home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / Reference / DevCon / Milan_1991 / Devcon91.2 / Locale / Development / include / clib / locale_protos.h
Encoding:
C/C++ Source or Header  |  1992-09-01  |  2.9 KB  |  81 lines

  1. #ifndef  CLIB_LOCALE_PROTOS_H
  2. #define  CLIB_LOCALE_PROTOS_H
  3. /*
  4. **    $Id: locale_protos.h,v 38.2 91/10/02 13:12:31 vertex Exp $
  5. **
  6. **    C prototypes
  7. **
  8. **    (C) Copyright 1990 Commodore-Amiga, Inc.
  9. **        All Rights Reserved
  10. */
  11. /* "locale.library" */
  12. #ifndef  EXEC_TYPES_H
  13. #include <exec/types.h>
  14. #endif
  15. #ifndef  LIBRARIES_LOCALE_H
  16. #include <libraries/locale.h>
  17. #endif
  18. #ifndef  DOS_DOS_H
  19. #include <dos/dos.h>
  20. #endif
  21. #ifndef  UTILITY_HOOKS_H
  22. #include <utility/hooks.h>
  23. #endif
  24. #ifndef  UTILITY_TAGITEM_H
  25. #include <utility/tagitem.h>
  26. #endif
  27. #ifndef  REXX_STORAGE_H
  28. #include <rexx/storage.h>
  29. #endif
  30. /*--- functions in V36 or higher (distributed as Preliminary Release 2.0) ---*/
  31. /* ARexx function host entry point */
  32. /* This function also returns a (struct RexxMsg *) in A1 */
  33. ULONG ARexxHost( struct RexxMsg *parameters );
  34. /**/
  35. /* Public entries */
  36. /**/
  37. void CloseCatalog( struct Catalog *catalog );
  38. void CloseLocale( struct Locale *locale );
  39. ULONG ConvToLower( struct Locale *locale, unsigned long character );
  40. ULONG ConvToUpper( struct Locale *locale, unsigned long character );
  41. void FormatDate( struct Locale *locale, STRPTR template,
  42.     struct DateStamp *date, struct Hook *putCharFunc );
  43. APTR FormatString( struct Locale *locale, STRPTR string, APTR dataStream,
  44.     struct Hook *putCharFunc );
  45. STRPTR GetCatalogStr( struct Catalog *catalog, long stringNum,
  46.     STRPTR defaultString );
  47. STRPTR GetLocaleStr( struct Locale *locale, unsigned long stringNum );
  48. BOOL IsAlNum( struct Locale *locale, unsigned long character );
  49. BOOL IsAlpha( struct Locale *locale, unsigned long character );
  50. BOOL IsCntrl( struct Locale *locale, unsigned long character );
  51. BOOL IsDigit( struct Locale *locale, unsigned long character );
  52. BOOL IsGraph( struct Locale *locale, unsigned long character );
  53. BOOL IsLower( struct Locale *locale, unsigned long character );
  54. BOOL IsPrint( struct Locale *locale, unsigned long character );
  55. BOOL IsPunct( struct Locale *locale, unsigned long character );
  56. BOOL IsSpace( struct Locale *locale, unsigned long character );
  57. BOOL IsUpper( struct Locale *locale, unsigned long character );
  58. BOOL IsXDigit( struct Locale *locale, unsigned long character );
  59. struct Catalog *OpenCatalogA( struct Locale *locale, STRPTR name,
  60.     struct TagItem *tags );
  61. struct Catalog *OpenCatalog( struct Locale *locale, STRPTR name, Tag tag1,
  62.     ... );
  63. struct Locale *OpenLocale( STRPTR name );
  64. BOOL ParseDate( struct Locale *locale, struct DateStamp *date, STRPTR template,
  65.     struct Hook *getCharFunc );
  66. struct Locale *SetDefaultLocale( struct Locale *locale );
  67. ULONG StrConvert( struct Locale *locale, STRPTR string, APTR buffer,
  68.     unsigned long bufferSize, unsigned long type );
  69. LONG StrnCmp( struct Locale *locale, STRPTR string1, STRPTR string2,
  70.     long length, unsigned long type );
  71. /**/
  72. /* Reserved entries */
  73. /**/
  74. void LocReserved0( void );
  75. void LocReserved1( void );
  76. void LocReserved2( void );
  77. void LocReserved3( void );
  78. void LocReserved4( void );
  79. void LocReserved5( void );
  80. #endif   /* CLIB_LOCALE_PROTOS_H */
  81.